<template>
	<view>
		<view class="border_bo">
			<view class="pay_title" style="padding-left: 30rpx;">
				<view class="pay_line"></view>
				支付信息
			</view>
			<view class="pay_item" @click="choosetype(1)">
				<image class="pay_icon1" src="../static/image/ico_wx@2x.png"></image>
				<view class="pay_right_box">
					<view class="pay_title1">微信支付</view>
					<view class="pay_selicon">
						<image src="../static/image/ddjs_ico_xz_sel@2x.png" v-if="type==1"></image>
						<image src="../static/image/ddjs_ico_xz_nor@2x.png" v-else></image>
					</view>
				</view>
			</view>
			<view class="pay_item" @click="choosetype(2)">
				<image class="pay_icon" src="../static/image/ico_zfb@2x.png"></image>
				<view class="pay_right_box">
					<view class="pay_title1">支付宝支付</view>
					<view class="pay_selicon">
						<image src="../static/image/ddjs_ico_xz_sel@2x.png" v-if="type==2"></image>
						<image src="../static/image/ddjs_ico_xz_nor@2x.png" v-else></image>
					</view>
				</view>
			</view>
			<view class="pay_item" @click="choosetype(0)" style="border-bottom:none">
				<image class="pay_icon" src="../static/image/ico_ye@2x.png"></image>
				<view class="pay_right_box">
					<view class="pay_title1">余额支付</view>
					<view class="pay_selicon">
						<image src="../static/image/ddjs_ico_xz_sel@2x.png" v-if="type==0"></image>
						<image src="../static/image/ddjs_ico_xz_nor@2x.png" v-else></image>
					</view>
				</view>
			</view>
		</view>
		<view class="btns" @click="tomima" v-if="type==0">立即支付</view>
		<view class="btns" @click="tomima" v-else>立即支付</view>
	</view>
</template>

<script>
	export default {
		props:['type'],
		data(){
			return{
				
			}
		},
		methods:{
			choosetype(id){
				this.$emit('selectchoose',id)
			},
			tomima(){
				this.$emit('selecttomima')
			}
		}
	}
</script>

<style>
	.border_bo {
		width: 100%;
		height: auto;
		background-color: #FFFFFF;
		margin-top: 20rpx;
	}
	
	/* cemter */
	.center {
		width: 100%;
		height: auto;
		padding: 10rpx 30rpx;
		background-color: #FFFFFF;
	}
	
	.vipmo {
		width: auto;
		line-height: 40rpx;
		background: #FFE7E6;
		border-radius: 6rpx;
		font-size: 26rpx;
		color: #FF3B30;
		padding: 0 10rpx;
		margin-right: 10rpx;
	}
	
	.center_pay {
		font-size: 22rpx;
		color: #999999;
	}
	
	.cemter_last {
		height: 40rpx;
		font-size: 34rpx;
		color: #FF3B30;
		font-weight: bold;
	}
	
	.center_study {
		margin-top: 6rpx;
		color: #666666;
		font-size: 24rpx;
	}
	
	.center_right {
		width: 475rpx;
		height: auto;
		padding: 20rpx 0 0 0;
	}
	
	.top_titles {
		width: 458rpx;
		height: 90rpx;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: bold;
		line-height: 42rpx;
		color: #333333;
		font-size: 28rpx;
		max-height: 90rpx;
		overflow: hidden;
		word-break: break-all;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}
	
	.center_image {
		width: 196rpx;
		height: 130rpx;
		border-radius: 10rpx;
	
	}
	
	.fwt {
		font-size: 24rpx;
	}
	
	.top_kong {
		width: 100%;
		height: 20rpx;
		background-color: #F5F5F5;
	}
	
	.nub_hui {
		height: 30rpx;
		font-size: 20rpx;
		color: #999999;
		margin-left: 6rpx;
		text-decoration: line-through;
	}
	
	.top-kong {
		width: 100%;
		height: var(--status-bar-height);
		background-color: #FFFFFF;
	}
	
	.border {
		width: 100%;
		height: 100rpx;
		padding: 0 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background-color: #FFFFFF;
	}
	
	.border image {
		width: 20rpx;
		height: 36rpx;
	}
	
	.border_start {
		display: flex;
		align-items: center;
	}
	
	.border_title {
		font-size: 34rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #303030;
	}
	
	.border_end {
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
		text-align: end;
	}
	
	.border_end image {
		width: 33rpx;
		height: 36rpx;
	}
	
	.item_box {
		width: 100%;
		height: 700rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		margin: 0 auto;
		overflow: hidden;
	}
	
	.top_item {
		width: 100%;
		height: 300rpx;
		color: #FF4145;
		font-size: 72rpx;
		background-color: #F5F5F5;
		text-align: center;
		padding: 80rpx;
	}
	
	.top_price {
		font-size: 72rpx;
		font-weight: bold;
		color: #FF4145;
	}
	
	.top_ordernum {
		font-size: 24rpx;
		color: #333333;
	}
	
	.pay_item {
		width: 96%;
		height: 100rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		/* border-bottom: solid 1rpx #E5E5E5; */
		margin-left: 4%;
		padding-right: 30rpx;
	}
	.pay_right_box{
		display: flex;
		justify-content: flex-start;
		align-items: center;
		border-bottom: solid 1rpx #F5F5F5;
	}
	
	.pay_title {
		width: 100%;
		height: 90rpx;
		display: flex;
		align-items: center;
		font-size: 34rpx;
	}
	
	.pay_title1 {
		width: 580rpx;
		height: 100rpx;
		display: flex;
		align-items: center;
		font-size: 28rpx;
	}
	
	.pay_icon {
		width: 38rpx;
		height: 40rpx;
	}
	
	.pay_icon1 {
		width: 40rpx;
		height: 35rpx;
	}
	
	.pay_selicon {
		width: 36rpx;
		height: 36rpx;
	}
	
	.pay_selicon image {
		width: 36rpx;
		height: 36rpx;
	}
	
	.btns {
		width: 86%;
		height: 88rpx;
		background: #FFDD47;
		border-radius: 10rpx;
		margin: 80rpx auto 0;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 30rpx;
		color: #333333;
		position: absolute;
		bottom: 3%;
		left: 6.7%;
	}
	
	.njpns {
		width: 36rpx;
		height: 36rpx;
	}
	
	.pay_title {
		width: 100%;
		height: 100rpx;
		/* padding: 0 30rpx; */
		/* font-size: 34rpx; */
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
	}
	
	.pay_line {
		width: 4rpx;
		height: 20rpx;
		background: #FFDD47;
		border-radius: 2rpx;
		margin-right: 10rpx;
	}
</style>